Game of life

John Conway's game of life. More info here.
Instrctions bellow...

For a space that is 'populated':
Each cell with one or no neighbors dies, as if by solitude.
Each cell with four or more neighbors dies, as if by overpopulation.
Each cell with two or three neighbors survives.
For a space that is 'empty' or 'unpopulated'
Each cell with three neighbors becomes populated.

Click to change the color of the cells
Press 'S' to start the simulation
Press 'P' to pause the simulation
Hold 'SHIFT' and drag the mouse to affect various cells